﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:entity="clr-namespace:for7raid.vk"
                    xmlns:local="clr-namespace:for7raid.vkGroupExplorer">
    <DataTemplate x:Key="GroupThumbTemplate" DataType="entity:Group">
        <!--<StackPanel Width="68">
            <Image Source="{Binding Photo}" Height="64" Width="64" Margin="1" Grid.ColumnSpan="2" />
            <StackPanel Orientation="Horizontal">
                <CheckBox IsChecked="{Binding Path=(local:MainWindowViewModel.IsSelected)}" Grid.Row="1" Margin="1" VerticalAlignment="Top"/>
                <TextBlock Grid.Column="1" Grid.Row="1" Text="{Binding Name}"
                       MaxWidth="64" MaxHeight="48" Margin="1" TextWrapping="WrapWithOverflow" TextTrimming="CharacterEllipsis" HorizontalAlignment="Center" />
            </StackPanel>
        </StackPanel>-->
        <Grid Margin="1" ToolTip="{Binding Name}" Grid.IsSharedSizeScope="True" Width="66">
            <Grid.RowDefinitions>
                <RowDefinition Height="68" />
                <RowDefinition Height="68" />
            </Grid.RowDefinitions>
            <Image Source="{Binding Photo}" Height="64" Width="64" Margin="1" Grid.ColumnSpan="2" />
           <CheckBox IsChecked="{Binding Path=(local:MainWindowViewModel.IsSelected)}" Margin="1" VerticalAlignment="Top" HorizontalAlignment="Left"/>
                <TextBlock Grid.Row="1" Text="{Binding Name}"
                       MaxWidth="64" MaxHeight="64" Margin="1" TextWrapping="WrapWithOverflow" TextTrimming="CharacterEllipsis" HorizontalAlignment="Center" />
        </Grid>
    </DataTemplate>

</ResourceDictionary>